<%--
  添加字典分类模板
  User: guoyao
  Date: 15-12-24
  Time: 下午2:55
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/tags/taglibs.jsp" %>
<html>
    <head>
        <title>修改字典信息</title>
    </head>
    <body>
        <div class="easyui-layout" data-options="fit:true">
            <form id="submitForm" method="post">
                <div data-options="region:'center',border:false" style="padding:5px;background:#fff;border:1px solid #ccc;">
                    <table class="doc-table">
                        <tr>
                            <th width="20%"></th>
                            <th width="80%"></th>
                        </tr>
                        <tr>
                            <td class="labelTd">分类:</td>
                            <td>
                                ${codeInfo.classId}&nbsp;&nbsp;${codeInfo.className}
                                <input type="hidden" name="classId" value="${codeInfo.classId}">
                            </td>
                        </tr>
                        <tr>
                            <td class="labelTd">ID:</td>
                            <td>
                                ${codeInfo.codeId}
                                <input type="hidden" name="codeId" value="${codeInfo.codeId}">
                            </td>
                        </tr>
                        <tr>
                            <td class="labelTd">名称:</td>
                            <td>
                                <input type="text" name="codeName" class="easyui-validatebox" value="${codeInfo.codeName}" data-options="
                                    validType: 'chinese',
                                    required: true
                                " />
                            </td>
                        </tr>
                        <tr>
                            <td class="labelTd">简介:</td>
                            <td>
                                <input name="description" class="easyui-validatebox" value="${codeInfo.description}" data-options="
                                    required: true
                                ">
                            </td>
                        </tr>
                        <%--<tr>
                            <td class="labelTd">上一级:</td>
                            <td>
                                <input name="codeSuperior" value="${codeInfo.codeSuperior}" class="easyui-combotree" style="width:200px;"
                                       data-options="url:'<c:url value="/base/queryCodesForTree.html" />'">
                            </td>
                        </tr>--%>
                        <tr>
                            <td class="labelTd">是否有效:</td>
                            <td>
                                <input class="easyui-combobox" name="delTag" data-options="
                                           validType: 'selectValueRequired',
                                           valueField: 'id',
                                           textField: 'text',
                                           url:'<c:url value="/sys/queryComboboxByDict.html?type=DEL_TAG_TYPE&selected=${codeInfo.delTag}" />',
                                           panelHeight:'auto',
                                           onLoadError: function (httpRequest) {
                                                displayJsonError(httpRequest);
                                           },
                                           required:true"/>
                            </td>
                        </tr>
                    </table>
                </div>
                <div data-options="region:'south',border:false" style="text-align:right;padding:5px 0;">
                    <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="updateSubmit()">更新</a>
                    <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="closeWindow()">取消</a>
                </div>
            </form>
        </div>
    </body>
</html>
